<?php
/**
 *
 *幼儿心得控制器
 *
 **/
namespace Home\Controller;

use Vendor\Page;

class ChildExperienceController extends ComController
{

    /*
     * 幼儿心得列表
     */
    public  function   index(){

        $sc_id = I('uid') ?  I('uid') : 0 ;
        $child_experiencet = M('child_experience');
        $data = $child_experiencet->where('sc_id ='.$sc_id)->select();

        $this->assign('data',$data);
        $this->display('child-heart');

    }


    /*
     * 幼儿心得详情
     */
  public   function  detail(){

      $id = I('id') ? I('id') : 0;

      $child_experience = M('child_experience');
      $data = $child_experience->where('id ='.$id)->find();

      $this->assign('data',$data);
      $this->display('childHeart-detail');

  }





    





}